<?php

namespace app\common\validate\xiluhouse;

use think\Validate;

class RentalOrder extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        //'lessor_name|房东姓名'         => ['require'],
        //'lessor_mobile|房东手机号'      => ['require','length:11'],
        //'lessor_identify|房东身份证'    => ['require'],
        //'renter_name|租客姓名'         => ['require'],
        //'renter_mobile|租客手机号'      => ['require','length:11'],
        //'renter_identify|租客身份证'    => ['require'],
        'type|支付类型'                 =>  ['require'],
        'deposit|押金'                 =>  ['require'],
        'renter_money|租金'            =>  ['require'],
        'lessor_medium_money|房东中介费'=>  ['require'],
        'renter_medium_money|租客中介费'=>  ['require'],
        'rent_start_date|租期开始时间'  =>  ['require'],
        'rent_end_date|租期结束时间'    =>  ['require'],
        //'rent_address|地址'            =>  ['require'],
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
